package com.chuangshu.chuangshuteam.vo;

import com.chuangshu.chuangshuteam.dto.FileMetadataDto;

import com.chuangshu.chuangshuteam.entity.Tags;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 帖子视图对象，用于向客户端展示帖子详情
 */
@Data

public class PostVO implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;

    private Long authorId;

    private String authorName;

    private String authorAvatar;

    private Long teamId;

    private String title;

    private String content;

    private List<Tags> tags;

    private List<FileMetadataDto> files;

    private LocalDateTime createdAt;
    
    /**
     * 是否已点赞
     */
    private Boolean isLiked;
    
    /**
     * 点赞数
     */
    private Long likeCount;
    
    /**
     * 评论数
     */
    private Long commentCount;
}